package com.gsnd.briuppts.web.controller;

import com.gsnd.briuppts.entity.VO.CountVO;
import com.gsnd.briuppts.result.Response;
import com.gsnd.briuppts.service.AnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/analysis") // 给当前的url加前缀
public class AnalysisController {

    @Autowired
    AnalysisService analysisService;

    @GetMapping("/count")
    public Response count(){
        CountVO analysisCount = analysisService.findAnalysisCount();
        return Response.success(analysisCount);
    }

}
